/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ocp.violate.services.internal;

import za.ac.cput.ocp.violate.model.Cube;
import za.ac.cput.ocp.violate.model.Square;
import za.ac.cput.ocp.violate.services.Shape;

/**
 *
 * @author Abduraghmaan
 */
public class BoxShape implements Shape {

    @Override
    public int calcSquareArea(Square s) 
    {
       int area;
       
       area = s.getSide()*s.getSide();
       
       return area;
    }

    @Override
    public int calcCubeArea(Cube c) 
    {
        int area;
       
       area = 6 * (c.getSide() * c.getSide());
       
       return area;
    }
    
}
